OMAP: Timer: Replace bss variable by gd
authorDirk Behme <[email protected]>
Sat, 11 Dec 2010 15:50:48 +0000 (10:50 -0500)
committerSandeep Paulraj <[email protected]>
Sat, 11 Dec 2010 15:50:48 +0000 (10:50 -0500)
commitb03c8403cd770332778eec9142f136a9c870aaeb
tree38b1b0167cd7bb8e9c67a62380ee70e339d1a1bf
parentaac0b4b6c153c413b4541a61d9c4296eef689e07
OMAP: Timer: Replace bss variable by gd

Reuse the gd->tbl value for timestamp and add gd->lastinc for lastinc bss
values in the OMAP timer driver.

The usage of bss values in drivers before initialisation of bss is forbidden.
In that special case some data in .rel.dyn gets corrupted.

Signed-off-by: Dirk Behme <[email protected]>
Tested-by: Steve Sakoman <[email protected]>
Tested-by: John Rigby <[email protected]>
Tested-by: Nishanth Menon <[email protected]>
Acked-by: Nishanth Menon <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
Tested-by: Sandeep Paulraj <[email protected]>
Signed-off-by: Sandeep Paulraj <[email protected]>
arch/arm/cpu/armv7/omap-common/timer.c